package com.dykj.fireFighting.web.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author LIJIANJIE
 */
@Data
@TableName(value = "dayi_test")
@ApiModel("测试业务实体")
public class DaYiTest {

    @ApiModelProperty("主键")
    @NotNull
    @TableId(value = "id" , type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("创建时间")
    @NotBlank
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty("创建人")
    @NotBlank
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty("修改人")
    @NotBlank
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;

    @ApiModelProperty("修改时间")
    @NotBlank
    @TableField(fill = FieldFill.UPDATE)
    private String updateTime;

    @ApiModelProperty("排序")
    @NotNull
    private Integer sort;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("电话")
    private String phone;

    @ApiModelProperty("user表昵称")
    @TableField(exist = false)
    private String nickName;

    @ApiModelProperty("user表邮件")
    @TableField(exist = false)
    private String email;
}
